package com.sinacom.servlet;

import java.util.Timer;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.sinacom.ibuilding.util.DualTask;

public class DualServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6172146912515263926L;

	public void init() throws ServletException {
		 Timer timer = new Timer();
         timer.schedule(new DualTask(), 1000, 60000);//在1秒后执行此任务,以后每隔60秒执行这个MyTask任务.
	}
	
}
